Well Test > Configuring CygNet Well Test > Configuring Well Test Using XML > Elements and Attributes > TrueAction, FalseAction

TrueAction, FalseAction

The PointValueCompare action type supports the configuration of true and false actions, these will be executed if the comparative expression is evaluated as true and/or false. If the expression evaluated is true, the action defined in the True Action property will be executed. Similarly, if the expression evaluated is false, the action defined in the False Action property will be executed. In the XML configuration these conditional actions are specified in the <TrueAction> and <FalseAction> elements.

Note: It is possible (and probable) to have nested Point Value Compare actions. There is no limit to the number of nested levels.

To learn about how these elements relate to other elements in a well test configuration XML structure, see Well Test Hierarchy.

Example

<Action type="PointValueCompare" operator="=" value1="POMSV" value1type="UDC" value1relativeFacilityLink="Separator" value2="1" value2type="SELF" value2relativeFacilityLink="Separator">

<TrueAction>

<Action type="Script" script="c:\temp\ProcessCalculations.vbs" source="Local" udc="WELLTEST" relativeFacilityLink="">

<Parameters>

<Parameter>

<Part type="Text" value="value=" />

<Part type="PointValue" udc="POMSV" relativeFacilityLink="Separator" attribute="Value" />

</Parameter>

<Parameter>

<Part type="Text" value="Timestamp=" />

<Part type="PointAttribute" udc="POMSV" relativeFacilityLink="Separator" attribute="Timestamp" />

</Parameter>

<Parameter>

<Part type="Text" value="PointTag=" />

<Part type="PointAttribute" udc="POMSV" relativeFacilityLink="Separator" attribute="PointIdLong" />

</Parameter>

<Parameter>

<Part type="Text" value="FacilityDescription=" />

<Part type="FacilityAttribute" relativeFacilityLink="Separator" attribute="FacilityDescription" />

</Parameter>

</Parameters>

</Action>

</TrueAction>

<FalseAction>

<Action type="Exit" udc="MSG" relativeFacilityLink="Separator" valueType="Text" attribute="" value="Failed 1" />

</FalseAction>

</Action>

Properties

The <TrueAction> and <FalseAction> elements have the following properties:

Property Description

Case Sensitive

Yes

Required

Yes

Number of Instances Allowed

1

Parent Element

<Action>

Child Elements

<Action>

Attributes

None

Attributes

The <TrueAction> and <FalseAction> elements have no attributes.

Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.